    <div class="container top">
      
      <ul class="breadcrumb">
        <li>
          <a href="<?php echo site_url("admin"); ?>">
            <?php echo ucfirst($this->uri->segment(1));?>
          </a> 
          <span class="divider">/</span>
        </li>
        <li>
          <a href="<?php echo site_url("admin").'/'.$this->uri->segment(2); ?>">
            <?php echo ucfirst($this->uri->segment(2));?>
          </a> 
          <span class="divider">/</span>
        </li>
        <li class="active">
          <a href="#">New</a>
        </li>
      </ul>
      
      <div class="page-header">
        <h2>
          Add New Project
        </h2>
      </div>
 
      <?php
      //flash messages
      if(isset($flash_message)){
        if($flash_message == TRUE)
        {
          echo '<div class="alert alert-success">';
            echo '<a class="close" data-dismiss="alert">×</a>';
            echo '<strong>Well done!</strong> new product created with success.';
          echo '</div>';       
        }else{
          echo '<div class="alert alert-error">';
            echo '<a class="close" data-dismiss="alert">×</a>';
            echo '<strong>Oh snap!</strong> change a few things up and try submitting again.';
          echo '</div>';          
        }
      }
      ?>
      
      <?php
      //form data
      $attributes = array('class' => 'form-horizontal', 'id' => '');
      $options_manufacture = array('' => "Select");
//      foreach ($manufactures as $row)
//      {
//        $options_manufacture[$row['id']] = $row['name'];
//      }

      //form validation
      echo validation_errors();
      
      echo form_open('index.php/project/add', $attributes);
      ?>
        <fieldset>
          <div class="control-group">
            <label for="pro_id" class="control-label">Project ID:</label>
            <div class="controls">
                <input type="text" id="pro_id" name="pro_id" value="<?php echo set_value('pro_id'); ?>" placeholder="Project ID">
              
            </div>
          </div>

           <div class="control-group">
            <label for="inputError" class="control-label">Name:</label>
            <div class="controls">
              <input type="text" id="name" name="name" value="<?php echo set_value('name'); ?>"  placeholder="Project Name">
             
            </div>
          </div>

           <div class="control-group">
            <label for="hireday" class="control-label">Hireday:</label>
            <div class="controls">
                <input type="date" id="hireday" name="hireday" >
            </div>
          </div>

        <div class="control-group">
            <label for="description" class="control-label">Description:</label>
            <textarea id="description" name="description" class="form-control"  rows="3"  placeholder="input description"></textarea>
         </div> <!-- End #input -->     
            
          <div class="control-group">
            <label for="bucket" class="control-label">Bucket:</label>
            <div class="controls">
              <input type="number" id="bucket" name="bucket" value="<?php echo set_value('bucket'); ?>"  placeholder="bucket">
              
            </div>
          </div>

           <div class="control-group">
            <label for="mgr_id" class="control-label">Mgr_id:</label>
            <div class="controls">
              <input type="text" id="mgr_id" name="mgr_id" value="<?php echo set_value('mgr_id'); ?>"  placeholder="Manger id">
             
            </div>
          </div>

           <div class="control-group">
            <label for="est_endday" class="control-label">Est_endday:</label>
            <div class="controls">
                <input type="date" id="est_endday" name="est_endday" >
            </div>
          </div>

           <div class="control-group">
            <label for="end_day" class="control-label">End day:</label>
            <div class="controls">
                <input type="date" id="end_day" name="end_day" >
            </div>
          </div>
            
          
         <!-- <div class="control-group"> -->
            <!-- <label for="dept_id" class="control-label">Department :</label> -->
            <!-- <div class="controls"> -->
                <!-- <select> -->
                   <!--  <?php
                         foreach ($department as $row) {
                             echo '<option value="'.$row[0].'">'.$row[1].'</option>';
                        }
                     ?> -->
                <!-- </select> -->
             
            <!-- </div> -->
         <!-- </div>  -->

          <div class="form-actions">
            <button class="btn btn-primary" type="submit">Create</button>
            <button class="btn" type="reset">Reset</button>
            <a  href="<?php echo base_url("index.php/project") ?>" class="btn">Cancel</a>
          </div>

        </fieldset>

      <?php echo form_close(); ?>

    </div>
     